package com.ruoyi.blogs.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysUser;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 浏览历史对象 bs_browse_history
 * 
 * @author ruoyi
 * @date 2022-12-06
 */
@ApiModel(value = "BsBrowseHistory", description = "浏览历史实体")
public class BsBrowseHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty("id")
    private String id;

    /** 标题 */
    @Excel(name = "标题")
    @ApiModelProperty("标题")
    private String title;

    /** 用户id */
    @Excel(name = "用户id")
    @ApiModelProperty("用户id")
    private Long userId;

    /** 内容连接id */
    @Excel(name = "内容连接id")
    @ApiModelProperty("内容连接id")
    private String connectId;

    /** 类型 */
    @Excel(name = "类型")
    @ApiModelProperty("类型 (0:博客 1:问答 2:资源)")
    private Integer type;

    /** 浏览记录的用户id */
    @Excel(name = "浏览记录的用户id")
    @ApiModelProperty("浏览记录的用户id")
    private Long connectUserId;

    /** 类型 */
    @Excel(name = "历史记录的用户详情")
    @ApiModelProperty("历史记录的用户详情")
    private SysUser historyUser;

    public Long getConnectUserId() {
        return connectUserId;
    }

    public void setConnectUserId(Long connectUserId) {
        this.connectUserId = connectUserId;
    }

    public SysUser getHistoryUser() {
        return historyUser;
    }

    public void setHistoryUser(SysUser historyUser) {
        this.historyUser = historyUser;
    }

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setConnectId(String connectId) 
    {
        this.connectId = connectId;
    }

    public String getConnectId() 
    {
        return connectId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("userId", getUserId())
            .append("connectId", getConnectId())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .toString();
    }
}
